package com.example.a02back.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author SimpChaos
 * @since 2022-07-02
 */
@TableName("topic")

public class Topic implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 活动发起人ID
     */
    @TableField(value = "uid")

    private String uid;

    /**
     * 活动ID
     */
    @TableId(value = "topicId", type = IdType.INPUT)

    private String topicId;

    /**
     * 标题
     */
    @TableField(value = "headline")

    private String headline;

    /**
     * 活动内容
     */
    @TableField(value = "content")

    private String content;

    /**
     * 创建时间
     */
    @TableField(value = "createTime")

    private LocalDateTime createTime;

    /**
     * 是否可见,0为不可见，1为可见
     */
    @TableField(value = "isVisible")

    private Integer isVisible;

    /**
     * 活动时间
     */
    @TableField(value = "time")

    private String time;



    /**
     *  1为大型比赛，2为文艺演出，3为讲座，4为娱乐活动，5为其他
     */
    @TableField(value = "active_value")
    private Integer activeValue;

    /**
     * 封面
     */
    private String imgFirst;


    /**
     * 活动图片
     */
    private String imgList;

    @TableField(value = "actionAddress")
    private String actionAddress;

    @TableField(value = "actionPosition")
    private String actionPosition;






    public String getImgFirst() {
        return imgFirst;
    }

    public void setImgFirst(String imgFirst) {
        this.imgFirst = imgFirst;
    }

    public String getImgList() {
        return imgList;
    }

    public void setImgList(String imgList) {
        this.imgList = imgList;
    }

    public Integer getActiveValue() {
        return activeValue;
    }

    public void setActiveValue(Integer activeValue) {
        this.activeValue = activeValue;
    }
    @Override
    public String toString() {
        return "Topic{" +
            "uid=" + uid +
            ", topicId=" + topicId +
            ", headline=" + headline +
            ", content=" + content +
            ", createTime=" + createTime +
            ", isVisible=" + isVisible +
            ", time=" + time +
        "}";
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getTopicId() {
        return topicId;
    }

    public void setTopicId(String topicId) {
        this.topicId = topicId;
    }

    public String getHeadline() {
        return headline;
    }

    public void setHeadline(String headline) {
        this.headline = headline;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public Integer getIsVisible() {
        return isVisible;
    }

    public void setIsVisible(Integer isVisible) {
        this.isVisible = isVisible;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getActionAddress() {
        return actionAddress;
    }

    public void setActionAddress(String actionAddress) {
        this.actionAddress = actionAddress;
    }

    public String getActionPosition() {
        return actionPosition;
    }

    public void setActionPosition(String actionPosition) {
        this.actionPosition = actionPosition;
    }
}
